<MudDialog>
    <DialogContent>
        <MudStack Spacing="0" AlignItems="AlignItems.Start" Row="false">
            <ClientPackageVersion/>
            <ServerPackageVersion/>
        </MudStack>
    </DialogContent>
    <DialogActions>
        <MudButton Color="Color.Primary" OnClick="@Close">Close</MudButton>
    </DialogActions>
</MudDialog>

@code {
    [CascadingParameter] private MudDialogInstance MudDialog { get; set; } = default!;

    void Close() => MudDialog.Close(DialogResult.Ok(true));
}